using SwaggerSettingsDemo.SwaggerExt;

var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
//builder.Services.ConfigureBasicSwaggerServices();
//builder.Services.ConfigureSwaggerServicesByCustomAttribute();
//builder.Services.ConfigureSwaggerServicesByNamespace();
builder.Services.ConfigureBasicSwaggerServicesUsingNamespace();

builder.Services.AddControllers();

var app = builder.Build();

// Configure the HTTP request pipeline.
//app.StartBasicSwagger();
//app.StartSwaggerWithCustomAttribute();
//app.StartSwaggerWithNamespace();
app.StartBasicSwaggerUsingNamespace();

app.UseHttpsRedirection();

app.UseAuthorization();

app.MapControllers();

app.Run();
